<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="/js/JScript.jsp" %>

<%@ page import="main.org.form.action.*, main.org.model.Utils, org.compiere.model.*, org.compiere.util.Env" %>

<%@ taglib prefix="s" uri="/struts-tags" %> 

<%
	MBPMProject project = null;
	Forms fProperty = (Forms) session.getAttribute("forms");
	FormBP fPropertyBP = (FormBP) session.getAttribute("formBP");
	if (fProperty != null)
		project = new MBPMProject(Env.getCtx(), fProperty.getDefaultProjectID(), null);
	if(fPropertyBP != null)
		project = new MBPMProject(Env.getCtx(), fPropertyBP.getProjectID(), null);
%>

<body onload="getStatus('<%= fProperty.getBPM_VersionBudget_ID()%>','<%= fProperty.getAD_User_ID() %>')">
<table width="60%" cellspacing="2" style="margin-left: 150px;">
	<tr>
		<td width="20%" style="border:double; border-color:#8DB3DC; text-align: left; padding-left: 10px;">
	 		<font color="#321818" style="font-family: sans-serif; font-style:normal;" size="+1">Организация</font>
	 	</td>
	 	<td style="border:dotted; border-color:#999999; width:40%; text-align: left; padding-left: 10px;">
	 		<b><%= fProperty.getOrg().getName() %></b>
	 	</td>
	</tr>
	<tr>
	 	<td style="border:double; border-color:#8DB3DC; text-align: left; padding-left: 10px;">
	 		<font color="#321818" style="font-family: sans-serif; font-style:normal;" size="+1">Бюджетный календарь</font>
	 	</td>
	 	<td style="border:dotted; border-color:#999999; text-align: left; padding-left: 10px;">
	 		<b><%= fProperty.getBudget().getC_Calendar().getName()+" - "+fProperty.getBudget().getC_Year().getFiscalYear()+" год" %></b>
	 	</td>
	</tr>
	<tr>
	 	<td style="border:double; border-color:#8DB3DC; text-align: left; padding-left: 10px;">
	 		<font color="#321818" style="font-family: sans-serif; font-style:normal;" size="+1">Рабочий проект</font>
	 	</td>
	 	<td style="border:dotted; border-color:#999999; text-align: left; padding-left: 10px;">
	 		<b><%= project.getName() %></b>
	 	</td>
	</tr>
	<tr>
	 	<td style="border:double; border-color:#8DB3DC; text-align: left; padding-left: 10px;">
	 		<input id="button" type="button" value="Отправить на согласование" onclick="setStatus('<%= fProperty.getBPM_VersionBudget_ID() %>','<%= fProperty.getAD_User_ID() %>')" color="#321818" style="font-family: sans-serif; font-style:normal;" size="+1"></input>
	 	</td>
	 	<td id="statustext" style="border:dotted; border-color:#999999; text-align: left; padding-left: 10px;">
	 	</td>
	</tr>
</table>

